package com.cloud.service.assetsdetail;

import com.cloud.model.view.assetsdetail.AssetsDetailView;
import com.cloud.service.base.BaseService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* <b><code>AssetsDetail</code></b>
* <p/>
* AssetsDetail的具体实现
* <p/>
* <b>Creation Time:</b> 2019-10-15 17:22:19.
*
* @author ${model.author}
* @version 1.0.0
 * @since cloud-spring-boot-be 1.0.0
 */
@Service
public interface AssetsDetailService extends BaseService<AssetsDetailView> {

    /**
     * 保存初始化统计表数据
     * @param userId
     */
    void saveAssetsAndAssetsDetail(Long userId);

    /**
     * 根据用户id和消费时间更新对应月份的统计和总消费
     * @param userId
     * @param consumeTime
     */
    void updateMonyByUserIdAndConsumeTime(Long userId, Long consumeTime);

    /**
     * 根据用户id获取本月统计表
     * @param userId
     * @return
     */
    AssetsDetailView getEntityByUserId(Long userId);

    /**
     * 通过用户id和时间获取指定月份每天消费情况信息
     */
    AssetsDetailView getAssetsDetailViewByValueMonthAndUserId(Long userId,Long valueTime);


}
